<?php
$a = 1; /* global scope */

function Test()
{
	global $a;
   echo $a."<br>"; /* reference to local scope variable */
}

switch($a)
{
	case 0:
		$i = 1;
		break;
	case 1:
		$i = 2;
		break;
}
Test();
echo $i;
?>